SDEF
// -----------------------------------------------------------------------------
//  $Logfile:: /Quake 2 Engine/Sin/Base Sin Data/Models/Monster/sea.def       $
// $Revision:: 24                                                             $
//   $Author:: Joeske                                                         $
//     $Date:: 11/07/98 6:22p                                                 $
//
// Copyright (C) 1998 by Ritual Entertainment, Inc.
// All rights reserved.
//
// This source may not be distributed and/or modified without
// expressly written permission by Ritual Entertainment, Inc.
//
// This is a model definition file.  It is to be used in conjunction with Sin.
//
// -----------------------------------------------------------------------------
// MODEL DESCRIPTION:
// Seabonite - Sea attack trooper.
//
// MODEL AUTHOR:
// Beau
//
/*SINED Monster_Seabonite (1 .5 0) (0 0 0) (0 0 0)
Seabonite
*/

// -----------------------------------------------------------------------------
// FILE DECLARATIONS
//
// Model Commands
path models/sea
scale 1.39

// Base Model
sea_base.sbm

// Skins
normal		               sea_base.tga
damage		               sea_damage1.tga

// Normal Animations
fire1                      sea_fire.sam
readyfire                  sea_readyfire.sam
aim1                       sea_aim.sam
idle1                      sea_idle1.sam
swim_walk                  sea_swim1.sam
swim_run                   sea_swim2.sam
dodge1                     sea_dodge1.sam
walk1                      sea_walk.sam
idle_stand                 sea_idlestand.sam

// Pain & Location Based Animations
pain1                      sea_paintorsolower.sam

pain_head                  sea_painhead.sam
pain_torso_upper           sea_paintorsoupper.sam
pain_torso_lower           sea_paintorsolower.sam
pain_arm_right_upper       sea_painlegright.sam
pain_arm_right_lower       sea_painlegright.sam
pain_arm_left_upper        sea_painlegleft.sam
pain_arm_left_lower        sea_painlegleft.sam
pain_leg_right_upper       sea_painlegright.sam
pain_leg_right_lower       sea_painlegright.sam
pain_leg_left_upper        sea_painlegleft.sam
pain_leg_left_lower        sea_painlegleft.sam

// Death & Location Based Animations
death1                     sea_death1.sam
death2                     sea_death2.sam
death3                     sea_death3.sam

// Optional Animations
jump_in            sea_jumpin.sam

// Id And Group Definitions
id   5 group head             flesh
group head damage             2.0
id  15 group torso_upper
group torso_upper damage      1.0
id  18 group torso_lower
group torso_lower damage      1.0
id  45 group leg_left_upper
group leg_left_upper damage   0.8
id  50 group leg_left_lower
group leg_left_lower damage   0.6
id  65 group leg_right_upper
group leg_right_upper damage  0.8
id  70 group leg_right_lower
group leg_right_lower damage  0.6
id  85 group arm_left_upper
group arm_left_upper damage   0.8
id  90 group arm_left_lower
group arm_left_lower damage   0.6
id 105 group arm_right_upper
group arm_right_upper damage  0.8
id 110 group arm_right_lower
group arm_right_lower damage  0.6
id 200 group arm_right_lower bone gun -50 153 -2
id 190 group tank 
group tank damage             1.5
id 195 group tank bone bubble

// -----------------------------------------------------------------------------
// INITIALIZATION SECTION
//
!init:
//
// SERVER Initialization Commands
//
// Class Setup
server classname actor
server script global/seabonite.scr
server setsize "-24 -36 0" "24 36 96"
server crouchsize "-52 -32 0" "52 32 48"
server weapon SpearGun
server health 50
server item spears 10

// Sound Aliases
server aliascache snd_idle1  "monsters/seabonite/seaidle1.wav" 1
server aliascache snd_idle2  "monsters/seabonite/seaidle2.wav" 1
server aliascache snd_idle3  "monsters/seabonite/seaidle3.wav" 1
server aliascache snd_idle4  "monsters/seabonite/seaidle4.wav" 1

server aliascache snd_pursuit1  "monsters/seabonite/seapurs1.wav" 1
server aliascache snd_pursuit2  "monsters/seabonite/seapurs2.wav" 1

server aliascache snd_lostweapon "monsters/seabonite/seapain4.wav" 1

//
// CLIENT Initialization Commands
//
// Sound Aliases
client aliascache snd_pain1  "monsters/seabonite/seapain1.wav" 1
client aliascache snd_pain2  "monsters/seabonite/seapain2.wav" 1
client aliascache snd_pain3  "monsters/seabonite/seapain3.wav" 1
client aliascache snd_pain4  "monsters/seabonite/seapain4.wav" 1
client aliascache snd_pain5  "monsters/seabonite/seapain5.wav" 1
client aliascache snd_pain6  "monsters/seabonite/seapain6.wav" 1

client aliascache snd_death1  "monsters/seabonite/seadeth1.wav" 1
client aliascache snd_death2  "monsters/seabonite/seadeth2.wav" 1
client aliascache snd_death3  "monsters/seabonite/seadeth3.wav" 1
client aliascache snd_death4  "monsters/seabonite/seadeth4.wav" 1
client aliascache snd_death5  "monsters/seabonite/seadeth5.wav" 1

// -----------------------------------------------------------------------------
// MAIN SECTION
//
!main:
// Special Commands
server fire1 first fire

// Pain & Location Based Animations
server pain1 first painsound
client pain1 first randomsound snd_pain 1 2

server pain_head            first painsound
client pain_head            first randomsound snd_pain_head 1 2
server pain_torso_upper     first painsound
client pain_torso_upper     first randomsound snd_pain 1 2
server pain_torso_lower     first painsound
client pain_torso_lower     first randomsound snd_pain 1 2
server pain_arm_right_upper first painsound
client pain_arm_right_upper first randomsound snd_pain 1 2
server pain_arm_right_lower first painsound
client pain_arm_right_lower first randomsound snd_pain 1 2
server pain_arm_left_upper  first painsound
client pain_arm_left_upper  first randomsound snd_pain 1 2
server pain_arm_left_lower  first painsound
client pain_arm_left_lower  first randomsound snd_pain 1 2
server pain_leg_right_upper first painsound
client pain_leg_right_upper first randomsound snd_pain 1 2
server pain_leg_right_lower first painsound
client pain_leg_right_lower first randomsound snd_pain 1 2
server pain_leg_left_upper  first painsound
client pain_leg_left_upper  first randomsound snd_pain 1 2
server pain_leg_left_lower  first painsound
client pain_leg_left_lower  first randomsound snd_pain 1 2

// Death Location Based Animations
server death1 1 deathsound 
client death1 1 randomsound snd_death 1 2
server death2 1 deathsound 
client death2 1 randomsound snd_death 1 2
server death3 1 deathsound 
client death3 1 randomsound snd_death 1 2

// Special Case Animations
client idle1 1 bonespawn bubble sprites/bubble.spr physics lerp randscale 0.05 0.2 vel 0 0 100 time 2 touchdie randorigin 10
client idle1 2 bonespawn bubble sprites/bubble.spr physics lerp randscale 0.05 0.2 vel 0 0 100 time 2 touchdie randorigin 10
client idle1 3 bonespawn bubble sprites/bubble.spr physics lerp randscale 0.05 0.2 vel 0 0 100 time 2 touchdie randorigin 10
client idle1 4 bonespawn bubble sprites/bubble.spr physics lerp randscale 0.05 0.2 vel 0 0 100 time 2 touchdie randorigin 10
client idle1 5 bonespawn bubble sprites/bubble.spr physics lerp randscale 0.05 0.2 vel 0 0 100 time 2 touchdie randorigin 10
client idle1 6 bonespawn bubble sprites/bubble.spr physics lerp randscale 0.05 0.2 vel 0 0 100 time 2 touchdie randorigin 10
client idle1 7 bonespawn bubble sprites/bubble.spr physics lerp randscale 0.05 0.2 vel 0 0 100 time 2 touchdie randorigin 10

// -----------------------------------------------------------------------------
// SOURCESAFE Update Log
//
// $Log:: /Quake 2 Engine/Sin/Base Sin Data/Models/Monster/sea.def            $
// 
// 24    11/07/98 6:22p Joeske
// Adjusted their ammo quantities again. Sea-10, Sea Capt-20.
// 
// 23    11/07/98 5:53p Joeske
// Changed their ammo counts from 40 to 6-Sea, 12-SeaCapt.
// 
// 22    11/07/98 5:23p Phook
// 
// 21    10/26/98 8:02p Phook
// 
// 20    10/25/98 6:51p Phook
// 
// 19    10/22/98 11:01p Joeske
// Fixed snd_lostweapon for all characters.
// 
// 18    10/16/98 6:56p Phook
// Oct 16: First global damage settings tweaks
// 
// 17    10/11/98 2:20p Joeske
// Fixed formatting, added in damage groups.
// 
// -----------------------------------------------------------------------------

